import request from '@/utils/request'
import type { AI_response } from '@/api/function/type.d.ts'

enum API {
  AICHAT_GET_URL = '/courseware/ai/chat'

}

export const getAIChat = (content: string) =>
  request.get<string, AI_response>(`${API.AICHAT_GET_URL}?msg=${content}`)
